package com.sjq.demo.service.impl;

import com.sjq.demo.entity.RbacPermission;
import com.sjq.demo.mapper.RbacPermissionMapper;
import com.sjq.demo.service.RbacPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 权限表 服务实现类
 * </p>
 *
 * @author yer
 * @since 2021-02-26
 */
@Service
public class RbacPermissionServiceImpl extends ServiceImpl<RbacPermissionMapper, RbacPermission> implements RbacPermissionService {

    @Override
    public List<RbacPermission> getPermissions(String roleid) {
        return getBaseMapper().getPermissionsByRoleId(roleid);
    }
}
